﻿#include "TestApp.h"
#include "window/wxwidgets/ssWXFrame.h"
#include "CanvasWindow.h"
#include "window/wxwidgets/ssWXConsole.h"

IMPLEMENT_APP(ssTestApp)

//BEGIN_EVENT_TABLE(ssTestApp, wxApp)
//END_EVENT_TABLE()

bool ssTestApp::OnInit()
{
	ssWXFrame* m_pFrame = new ssWXFrame(wxT("star seeker"), wxPoint(100,20), wxSize(800,600));
	SetTopWindow(m_pFrame);
	m_pFrame->Show(true);
	ssWXConsole::Create(m_pFrame, wxPoint(20, 20), wxSize(300, 400));

	CanvasWindow* m_pCanvas = new CanvasWindow(m_pFrame, wxPoint(0, 0), m_pFrame->GetClientSize());
	m_pCanvas->Show(true);
	m_pCanvas->SetFocus();

	return true;
}

int ssTestApp::OnExit()
{
	return true;
}
